<!DOCTYPE html>
<html>
<head>
    <title>设备变更记录</title>
    #parse("sys/header.html")
</head>
<style>
    ::-webkit-scrollbar{
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-thumb{
        border-radius: 10px;
        -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        background: #a8a5a5;
    }
</style>
<body>
<div id="rrapp" v-cloak>
    <div id="reviewLayer" style="display: none;">
        <form class="form-horizontal" style="width: 350px;">
            <div class="form-group">
                <div class="form-group">
                    <div class="col-sm-2 control-label">设备名称</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{devChangeRecord.devName}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">设备编码</div>
                    <span class="label label-success" style="vertical-align: bottom;">{{devChangeRecord.devCode}}</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label">设备状态</div>
                    <div class="col-sm-10" style="margin-top: 6px">
                 <!--       <Radio-group v-model="devChangeRecord.devStatus">
                            <Radio :label="1" ><span>通过</span></Radio>
                            <Radio :label="2" ><span>未通过</span></Radio>
                        </Radio-group>-->
                        <i-select v-model="devChangeRecord.devStatus" placeholder="设备状态">
                            <i-option v-for="item in statusList" :value="item.value" :key="item.value">{{item.name}}
                            </i-option>
                        </i-select>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 8px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.devName" @on-enter="query" placeholder="设备名称"></i-input>
                </i-col>
                <i-col span="4">
                    <i-input v-model="q.devProductName" @on-enter="query" placeholder="生产线名称/生产线代码"></i-input>
                </i-col>
                <i-col span="4">
                    <i-input v-model="q.devProceName" @on-enter="query" placeholder="工序名称/工序号"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
<!--            <div class="buttons-group">-->
<!--                #if($shiro.hasPermission("devchangerecord:review"))-->
<!--                <i-button type="primary" @click="review"><i class="fa fa-gavel"></i>&nbsp;设备状态</i-button>-->
<!--                #end-->
<!--                #if($shiro.hasPermission("devchangerecord:save"))-->
<!--                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
<!--                #end-->
<!--                #if($shiro.hasPermission("devchangerecord:update"))-->
<!--                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>-->
<!--                #end-->
<!--                #if($shiro.hasPermission("devchangerecord:delete"))-->
<!--                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
<!--                #end-->
<!--            </div>-->
        </Row>
        <Row :gutter="16" style="margin: 8px 8px 0px 8px">
            <table id="jqGrid"></table>
        </Row>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="devChangeRecord" :rules="ruleValidate" :label-width="80">
            <!--  <Form-item label="删除标识" prop="isDel">
                  <i-input v-model="devChangeRecord.isDel" placeholder="删除标识"></i-input>
              </Form-item>-->
            <Row>
                <i-col span="11">
                    <Form-item label="设备名称" prop="devName" icon="md-arrow-dropdown-circle" @on-click="getDeviceInfo" >
                        <i-input v-model="devChangeRecord.devName" placeholder="设备名称" readonly></i-input>
<!--                        <i-input v-model="devChangeRecord.devCode" placeholder="设备编码" icon="md-arrow-dropdown-circle" @on-click="getDeviceInfo" readonly></i-input>-->
                    </Form-item>

                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="设备编码" prop="devCode">
                        <i-input v-model="devChangeRecord.devCode" placeholder="设备编码" readonly></i-input>

                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="所属工厂" prop="subFactory" >
                        <i-input v-model="devChangeRecord.subFactory" placeholder="所属工厂"></i-input>
<!--                        <i-input v-model="devChangeRecord.devCode" placeholder="设备编码" icon="md-arrow-dropdown-circle" @on-click="getDeviceInfo" readonly></i-input>-->
                    </Form-item>

                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="设备状态 " prop="devStatus">
                        <i-select v-model="devChangeRecord.devStatus" placeholder="设备状态">
                            <i-option v-for="item in statusList" :value="item.value" :key="item.value">{{item.name}}
                            </i-option>
                        </i-select>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="生产线名称" prop="devProductName">
                        <i-input v-model="devChangeRecord.devProducName" placeholder="生产线名称" readonly icon="md-arrow-dropdown-circle"   @on-click="deptTreeShow"></i-input>
                    </Form-item>

                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="所属车间" prop="workshop">
                        <i-input v-model="devChangeRecord.workshopName" placeholder="所属车间" readonly ></i-input>
                    </Form-item>
                </i-col>

            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="工序号" prop="devProceNo">
                        <i-input v-model="devChangeRecord.devProceNo" placeholder="工序号" ></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="特种设备" prop="isSpec">

                        <i-select v-model="devChangeRecord.isSpec" placeholder="特种设备">
                            <i-option v-for="item in isSpecList" :value="item.value" :key="item.value">{{item.name}}
                            </i-option>
                        </i-select>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
             <!--   <i-col span="11">
                    <Form-item label="规格型号" prop="checkResult">
                        <i-input v-model="devChangeRecord.checkResult" placeholder="规格型号"></i-input>
                    </Form-item>
                </i-col>-->
                    <Form-item label="备注" prop="remark">
                        <i-input type="textarea" v-model="devChangeRecord.remark" placeholder="备注"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <!--

                <i-col span="11" offset="2">
                    <Form-item label="工序名称" prop="devProceName">
                        <i-input v-model="devChangeRecord.devProceName" placeholder="工序名称" ></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="自编号" prop="autoNo">
                        <i-input v-model="devChangeRecord.autoNo" placeholder="自编号"></i-input>
                    </Form-item>

                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="使用单位" prop="useDept">
                        <i-input v-model="devChangeRecord.useDept" placeholder="使用单位"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="验收日期" prop="checkDate">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="devChangeRecord.checkDate"
                                     placeholder="验收日期"></i-input>
                    </Form-item>

                </i-col><Form-item label="更新日期" prop="updateDate">
                 <i-input v-model="devChangeRecord.updateDate" placeholder="更新日期"></i-input>
             </Form-item>
             <Form-item label="更新者ID" prop="updateUser">
                 <i-input v-model="devChangeRecord.updateUser" placeholder="更新者ID"></i-input>
             </Form-item>
             <Form-item label="创建者ID" prop="createUser">
                 <i-input v-model="devChangeRecord.createUser" placeholder="创建者ID"></i-input>
             </Form-item>
             <Form-item label="上传日期" prop="createDate">
                 <i-input v-model="devChangeRecord.createDate" placeholder="上传日期"></i-input>
             </Form-item>-->
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<div id="deptLayer" style="display: none;padding:10px;">
    <ul id="deptTree" class="ztree"></ul>
</div>
<script src="${rc.contextPath}/js/sys/devchangerecord.js?_${date.systemTime}"></script>
</body>
</html>
